package cn.hjh.dao;

import java.awt.*;

public class ColorInk implements Ink {
    /**
     * 彩色墨盒
     * @param r
     * @param g
     * @param b
     * @return
     */
    @Override
    public String getColor(int r, int g, int b) {
        Color color = new Color(r, g, b);
        return "#"+Integer.toHexString(color.getRGB()).substring(2);
    }
}
